let target = { x: 1 };
let source = { y: 2, z: 3 };
for (const k of Object.keys(source)) {
  target[k] = source[k];
}
console.log(target); // { x: 1, y: 2, z: 3 }
